package com.kazu.index.service.impl;

import com.kazu.index.entity.dao.IndexSentence;
import com.kazu.index.mapper.IndexSentenceMapper;
import com.kazu.index.service.IndexSentenceService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 首页展示句子 服务实现类
 * </p>
 *
 * @author kazu
 * @since 2023/02/19 09:41
 */
@Service
public class IndexSentenceServiceImpl extends ServiceImpl<IndexSentenceMapper, IndexSentence> implements IndexSentenceService {
	
	@Autowired
	private IndexSentenceMapper indexSentenceMapper;
	
	/**
	 * 查询所有数据非分页
	 *
	 * @return 所有数据
	 */
	@Override
	public List<IndexSentence> getAll() {
		return indexSentenceMapper.selectList(null);
	}
}
